package com.boil.qz.safekavass.pojo;

/**
 * Created by ChenYong on 2017-05-24.
 * <br>
 * 举报统计-根据发红包月份统计红包发放情况的映射实体类。
 */
public class ReportCountBySendredpackMonthVo {
    /**
     * 发红包的月份
     */
    private String sendredpackMonth;
    /**
     * 发红包的结果
     */
    private String sendredpackResult;
    /**
     * 发红包的个数
     */
    private Integer sendredpackCount;

    /**
     * 默认构造器。
     */
    public ReportCountBySendredpackMonthVo() {
        super();
    }

    public String getSendredpackMonth() {
        return sendredpackMonth;
    }

    public void setSendredpackMonth(String sendredpackMonth) {
        this.sendredpackMonth = sendredpackMonth;
    }

    public String getSendredpackResult() {
        return sendredpackResult;
    }

    public void setSendredpackResult(String sendredpackResult) {
        this.sendredpackResult = sendredpackResult;
    }

    public Integer getSendredpackCount() {
        return sendredpackCount;
    }

    public void setSendredpackCount(Integer sendredpackCount) {
        this.sendredpackCount = sendredpackCount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ReportCountBySendredpackMonthVo that = (ReportCountBySendredpackMonthVo) o;

        if (sendredpackMonth != null ? !sendredpackMonth.equals(that.sendredpackMonth) : that.sendredpackMonth != null)
            return false;
        if (sendredpackResult != null ? !sendredpackResult.equals(that.sendredpackResult) : that.sendredpackResult != null)
            return false;
        return sendredpackCount != null ? sendredpackCount.equals(that.sendredpackCount) : that.sendredpackCount == null;
    }

    @Override
    public int hashCode() {
        int result = sendredpackMonth != null ? sendredpackMonth.hashCode() : 0;
        result = 31 * result + (sendredpackResult != null ? sendredpackResult.hashCode() : 0);
        result = 31 * result + (sendredpackCount != null ? sendredpackCount.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ReportCountBySendredpackMonthVo{");
        sb.append("sendredpackMonth='").append(sendredpackMonth).append('\'');
        sb.append(", sendredpackResult='").append(sendredpackResult).append('\'');
        sb.append(", sendredpackCount=").append(sendredpackCount);
        sb.append('}');
        return sb.toString();
    }
}